﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl">
  <xsl:param name="id" select="0"/>
  <xsl:param name="masp" select="0"/>
  <xsl:template match="/">
      <table border="0" width="100%">
        <th style="padding:5px; background-color:#999999; width:281px; color: #FFFFFF; text-align:left" colspan="2">
            Động Cơ
        </th>
        <tr>
          <td>
            Loại Động Cơ
          </td>
          <td style="text-align: right">
            <xsl:value-of select="SanPham/LoaiSP[@id=$id]/yamaha[MaSP=$masp]/KyThuat/LoaiDongCo"/>
          </td>
        </tr>
        <tr>
          <td>
            Dung Tích
          </td>
          <td style="text-align: right">
            <xsl:value-of select="SanPham/LoaiSP[@id=$id]/yamaha[MaSP=$masp]/KyThuat/DungTich"/>
          </td> 
        </tr>
        <tr>
          <td>
            Hệ Thống Đánh Lửa
          </td>
          <td style="text-align: right">
            <xsl:value-of select="SanPham/LoaiSP[@id=$id]/yamaha[MaSP=$masp]/KyThuat/HeThongDanhLua"/>
          </td>
        </tr>
      </table>
      <table border="0" width="100%">
        <th style="padding:5px; background-color:#999999; width:281px; color: #FFFFFF; text-align:left" colspan="2">
            Khung Xe
        </th>
        <tr>
          <td>
            Loại Khung
          </td>
          <td style="text-align: right">
            <xsl:value-of select="SanPham/LoaiSP[@id=$id]/yamaha[MaSP=$masp]/KyThuat/LoaiKhung"/>
          </td>
        </tr>
        <tr>
          <td>
            Kích Thước
          </td>
          <td style="text-align: right">
            <xsl:value-of select="SanPham/LoaiSP[@id=$id]/yamaha[MaSP=$masp]/KyThuat/KichThuoc"/>
          </td>
        </tr>
      </table>
      <table border="0" width="100%">
        <th style="padding:5px; background-color:#999999; width:281px; color: #FFFFFF; text-align:left" colspan="2">
            Kích Thước
          </th>
        <tr>
          <td>
            Kích Thước Dài Rộng
          </td>
          <td style="text-align: right">
            <xsl:value-of select="SanPham/LoaiSP[@id=$id]/yamaha[MaSP=$masp]/KyThuat/KichThuocDaiRong"/>
          </td>
        </tr>
        <tr>
          <td>
            Độ Cao Yên Xe
          </td>
          <td style="text-align: right">
            <xsl:value-of select="SanPham/LoaiSP[@id=$id]/yamaha[MaSP=$masp]/KyThuat/DoCao"/>
          </td>
        </tr>
      </table>
      <table border="0" width="100%">
        <th style="padding:5px; background-color:#999999; width:281px; color: #FFFFFF; text-align:left" colspan="2">
            Bảo Hành
          </th>
        <tr>
          <td>
            Thời Gian Bảo Hành
          </td>
          <td style="text-align: right">
            <xsl:value-of select="SanPham/LoaiSP[@id=$id]/yamaha[MaSP=$masp]/KyThuat/ThoiGian"/>
          </td>
        </tr>
      </table>
    <table border="0" width="100%">
      <th style="padding:5px; background-color:#999999; width:281px; color: #FFFFFF; text-align:left" colspan="2">
          Giá Tiền
        </th>
      <tr>
        <td>
          Giá Tiền ( Đã Tính VAT )
        </td>
        <td style="text-align: right">
          <xsl:value-of select="SanPham/LoaiSP[@id=$id]/yamaha[MaSP=$masp]/GiaTien"/> VND
        </td>
      </tr>
    </table>
  </xsl:template>
</xsl:stylesheet>
